﻿using System;
using System.ComponentModel.Composition;

namespace Security.Events.Repositories
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class RepositoryMetadataAttribute : Attribute, IRepositoryMetadata
    {
        public RepositoryMetadataAttribute(Type type)
        {
            Type = type;
        }

        public Type Type { get; private set; }
    }
}